package org.openaltimeter.desktopapp;

public class AutoAnnotationsSettings 
{
	public static final int INDEX_NOT_SET = -1;
	
	private boolean maxHeight;
	private boolean launchHeight;
	private boolean zoomHeight;
	
	private int fromIndex = INDEX_NOT_SET;
	private int toIndex = INDEX_NOT_SET;
	
	private double flightStartHeight = 20.0;
	private double flightEndHeight = 8.0;
	
	private boolean clearPreviousAnnotations = true;
	
	public void setMaxHeight(boolean maxHeight) 
	{
		this.maxHeight = maxHeight;
	}
	
	public boolean isMaxHeight() 
	{
		return maxHeight;
	}

	public void setLaunchHeight(boolean launchHeight) 
	{
		this.launchHeight = launchHeight;
	}

	public boolean isLaunchHeight() 
	{
		return launchHeight;
	}

	public void setZoomHeight(boolean zoomHeight) 
	{
		this.zoomHeight = zoomHeight;
	}

	public boolean isZoomHeight() 
	{
		return zoomHeight;
	}
	
	public void setFromIndex(int fromIndex) 
	{
		this.fromIndex = fromIndex;
	}

	public int getFromIndex() 
	{
		return fromIndex;
	}

	public void setToIndex(int toIndex) 
	{
		this.toIndex = toIndex;
	}

	public int getToIndex() 
	{
		return toIndex;
	}

	public void setFlightStartHeight(double flightStartHeight) 
	{
		this.flightStartHeight = flightStartHeight;
	}

	public double getFlightStartHeight() 
	{
		return flightStartHeight;
	}

	public void setFlightEndHeight(double flightEndHeight) 
	{
		this.flightEndHeight = flightEndHeight;
	}

	public double getFlightEndHeight() 
	{
		return flightEndHeight;
	}

	public void setClearPreviousAnnotations(boolean clearPreviousAnnotations) 
	{
		this.clearPreviousAnnotations = clearPreviousAnnotations;
	}

	public boolean isClearPreviousAnnotations() 
	{
		return clearPreviousAnnotations;
	}

	public AutoAnnotationsSettings(boolean maxHeight, boolean launchHeight, boolean zoomHeight)
	{
		this.setLaunchHeight(launchHeight);
		this.setMaxHeight(maxHeight);
		this.setZoomHeight(zoomHeight);
	}

}
